import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../components/Home.vue'
import DataCount from '../components/datacount/DataCount.vue'
import Agent from '../components/agent/Agent.vue'
import Video from '../components/video/Video.vue'
import Withdraw from '../components/withdraw/Withdraw.vue'
import Order from '../components/order/Order.vue'
import Pay from '../components/pay/Pay.vue'
import Domain from '../components/domain/Domain.vue'
import Wxff from '../components/wxff/Wxff.vue'
import Qtpz from '../components/qtpz/Qtpz.vue'
import Config from '../components/config/Config.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home,
    children: [
      {
        path: '/datacount',
        component: DataCount
      },
      {
        path: '/agent',
        component: Agent
      },
      {
        path: '/video',
        component: Video
      },
      {
        path: '/withdraw',
        component: Withdraw
      },
      {
        path: '/order',
        component: Order
      },
      {
        path: '/pay',
        component: Pay
      },
      {
        path: '/domain',
        component: Domain
      },
      {
        path: '/wxff',
        component: Wxff
      },
      {
        path: '/qtpz',
        component: Qtpz
      },
      {
        path: '/config',
        component: Config
      }
    ]
  }
]

const router = new VueRouter({
  routes
})

export default router
